package com.base.service.COUPON.impl;

import com.base.mapper.couponmapper.CouponPayOrderMapper;
import com.base.po.voip_coupon.CouponPayOrder;
import com.base.po.voip_coupon.CouponPayOrderExample;
import com.base.service.COUPON.CouponPayOrderService;
import com.base.utils.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("couponPayOrderService")
public class CouponPayOrderServiceImpl implements CouponPayOrderService {
    @Autowired
    private CouponPayOrderMapper couponPayOrderMapper;

    @Override
    public int countByExample(CouponPayOrderExample example) {
        return couponPayOrderMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(CouponPayOrderExample example) {
        return couponPayOrderMapper.deleteByExample(example);
    }

    @Override
    public int insert(CouponPayOrder record) {
        return couponPayOrderMapper.insert(record);
    }

    @Override
    public int insertSelective(CouponPayOrder record) {
        return couponPayOrderMapper.insertSelective(record);
    }

    @Override
    public List<CouponPayOrder> selectByExample(CouponPayOrderExample example) {
        return couponPayOrderMapper.selectByExample(example);
    }

    @Override
    public CouponPayOrder selectByPrimaryKey(String id) {
        return couponPayOrderMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByExampleSelective(CouponPayOrder record, CouponPayOrderExample example) {
        return couponPayOrderMapper.updateByExampleSelective(record, example);
    }

    @Override
    public int updateByExample(CouponPayOrder record, CouponPayOrderExample example) {
        return couponPayOrderMapper.updateByExample(record, example);
    }

    @Override
    public int updateByPrimaryKeySelective(CouponPayOrder record) {
        return couponPayOrderMapper.updateByPrimaryKeySelective(record);
    }
}
